package ProjectXXX;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.border.TitledBorder;

public class SettingsPane extends JPanel
{
	
	private JComboBox catagoryJCB = null;
	private JTextArea catagoryJTA = null;
	private JButton addBut = null,editBut = null,addSItypeBut = null;
	
	private JPanel catagoryPanel = null,northCatP = null,centerCatP = null;
	private Box southCatP = null;
	
	public SettingsPane()
	{
		catagoryPanel = new JPanel(new BorderLayout());
		
		//North Catagory Panel
		northCatP = new JPanel();
		BoxLayout b1  = new BoxLayout(northCatP,BoxLayout.Y_AXIS);
		northCatP.setLayout(b1);
		catagoryJCB = new JComboBox();
		catagoryJCB.addItem("<SELECT SETTINGS>");
		catagoryJCB.addItem("ALTER PRICES");
		catagoryJCB.addItem("ADD PRICE CATAGORY");
		catagoryJCB.addItem("ADD TYPE OF MEDIA OR MACHINE");
		northCatP.add(catagoryJCB);
		northCatP.setBorder(BorderFactory.createEmptyBorder(30,0,0,0));
		catagoryPanel.add(northCatP,BorderLayout.NORTH);
		
		//center catagory Panel
		centerCatP = new JPanel(new GridLayout(1,1));
		catagoryJTA = new JTextArea("JTABLE : <Catagory>,<CatagoryName>,<Price>");
		centerCatP.add(catagoryJTA);
		catagoryPanel.add(centerCatP, BorderLayout.CENTER);
		
		//south Catagory Panel
		southCatP = new Box(BoxLayout.X_AXIS);
		//BoxLayout b2  = new BoxLayout(southCatP,BoxLayout.X_AXIS);
		//southCatP.setLayout(b2);
		addBut = new JButton("Add Catagory");
		editBut = new JButton("Edit Catagory");
		addSItypeBut = new JButton("Add Stock Type");
		southCatP.add(Box.createHorizontalStrut(200));
		southCatP.add(addBut);
		southCatP.add(Box.createHorizontalStrut(20));
		southCatP.add(editBut);
		southCatP.add(Box.createHorizontalStrut(20));
		southCatP.add(addSItypeBut);
		catagoryPanel.add(southCatP,BorderLayout.SOUTH);
		
		this.setLayout(new GridLayout(1,1));
		this.add(catagoryPanel);
		
	}	
	
	
	
}//end class declaration